<?php
/* SVN FILE: $Id$ */
/* MgTipoDescuento Test cases generated on: 2009-06-06 01:06:43 : 1244270083*/
App::import('Model', 'MgTipoDescuento');

class MgTipoDescuentoTestCase extends CakeTestCase {
	var $MgTipoDescuento = null;
	var $fixtures = array('app.mg_tipo_descuento', 'app.mg_descuentos_por_cliente');

	function startTest() {
		$this->MgTipoDescuento =& ClassRegistry::init('MgTipoDescuento');
	}

	function testMgTipoDescuentoInstance() {
		$this->assertTrue(is_a($this->MgTipoDescuento, 'MgTipoDescuento'));
	}

	function testMgTipoDescuentoFind() {
		$this->MgTipoDescuento->recursive = -1;
		$results = $this->MgTipoDescuento->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgTipoDescuento' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'valor'  => 'Lorem ipsum dolor ',
			'created'  => '2009-06-06',
			'modified'  => '2009-06-06',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>